import { param2Obj } from '@/utils'

const userMap = {
  lossInfo: {
    customerNum: '123456',
    customerName: '我是小仙女',
    sex: '男',
    type: '身份证',
    typeNum: '1234567890123',
    nationality: '中国',
    mobileTel: '86--13905519999',
    tel: '88008800',
    address: '安徽省合肥市包河区滨湖新区南宁路99999999999999号'
  },
  gridData: [{
    id: 1,
    customerNo: '111111',
    sign: '动账版',
    identification: 'NEW',
    masterCard: ''
  },
  {
    id: 2,
    customerNo: '222222',
    sign: '动账版',
    identification: 'NEW',
    masterCard: ''
  },
  {
    id: 3,
    customerNo: '333333',
    sign: '动账版',
    identification: 'NEW',
    masterCard: ''
  },
  {
    id: 4,
    customerNo: '444444',
    sign: '动账版',
    identification: 'NEW',
    masterCard: ''
  },
  {
    id: 5,
    customerNo: '555555',
    sign: '动账版',
    identification: 'NEW',
    masterCard: ''
  },
  {
    id: 6,
    customerNo: '666666',
    sign: '动账版',
    identification: 'NEW',
    masterCard: ''
  }],
  lossRecordData: [{
    mainCallNumber: '15922223333',
    customerName: '我是小仙女',
    isLossSuccess: '是',
    number: '111111111111111111',
    chequeNumber: '22wewe',
    accountType: '活期一本通',
    houseHoldIdNo: '610322221484844854545454',
    productName: '一本通',
    lossDeadLine: '五天临时',
    bankName: '陕西中国银行支行',
    operator: '小仙女',
    lossSuccessTime: '2019-05-31',
    openBank: '安徽中国银行',
    tellNumber: '44444546665656',
    createTime: '2019-05-25',
    agentName: '小仙女',
    agentIDNumber: '622000020214252',
    reviser: '我是小仙女',
    remark: '我是小仙女'
  }, {
    mainCallNumber: '15922223333',
    customerName: '我是小仙女',
    isLossSuccess: '是',
    number: '111111111111111111',
    chequeNumber: '22wewe',
    accountType: '活期一本通',
    houseHoldIdNo: '610322221484844854545454',
    productName: '一本通',
    lossDeadLine: '五天临时',
    bankName: '陕西中国银行支行',
    operator: '小仙女',
    lossSuccessTime: '2019-05-31',
    openBank: '安徽中国银行',
    tellNumber: '44444546665656',
    createTime: '2019-05-25',
    agentName: '小仙女',
    agentIDNumber: '622000020214252',
    reviser: '我是小仙女',
    remark: '我是小仙女'
  }, {
    mainCallNumber: '15922223333',
    customerName: '我是小仙女',
    isLossSuccess: '是',
    number: '111111111111111111',
    chequeNumber: '22wewe',
    accountType: '活期一本通',
    houseHoldIdNo: '610322221484844854545454',
    productName: '一本通',
    lossDeadLine: '五天临时',
    bankName: '陕西中国银行支行',
    operator: '小仙女',
    lossSuccessTime: '2019-05-31',
    openBank: '安徽中国银行',
    tellNumber: '44444546665656',
    createTime: '2019-05-25',
    agentName: '小仙女',
    agentIDNumber: '622000020214252',
    reviser: '我是小仙女',
    remark: '我是小仙女'
  }, {
    mainCallNumber: '15922223333',
    customerName: '我是小仙女',
    isLossSuccess: '是',
    number: '111111111111111111',
    chequeNumber: '22wewe',
    accountType: '活期一本通',
    houseHoldIdNo: '610322221484844854545454',
    productName: '一本通',
    lossDeadLine: '五天临时',
    bankName: '陕西中国银行支行',
    operator: '小仙女',
    lossSuccessTime: '2019-05-31',
    openBank: '安徽中国银行',
    tellNumber: '44444546665656',
    createTime: '2019-05-25',
    agentName: '小仙女',
    agentIDNumber: '622000020214252',
    reviser: '我是小仙女',
    remark: '我是小仙女'
  }, {
    mainCallNumber: '15922223333',
    customerName: '我是小仙女',
    isLossSuccess: '是',
    number: '111111111111111111',
    chequeNumber: '22wewe',
    accountType: '活期一本通',
    houseHoldIdNo: '610322221484844854545454',
    productName: '一本通',
    lossDeadLine: '五天临时',
    bankName: '陕西中国银行支行',
    operator: '小仙女',
    lossSuccessTime: '2019-05-31',
    openBank: '安徽中国银行',
    tellNumber: '44444546665656',
    createTime: '2019-05-25',
    agentName: '小仙女',
    agentIDNumber: '622000020214252',
    reviser: '我是小仙女',
    remark: '我是小仙女'
  }, {
    mainCallNumber: '15922223333',
    customerName: '我是小仙女',
    isLossSuccess: '是',
    number: '111111111111111111',
    chequeNumber: '22wewe',
    accountType: '活期一本通',
    houseHoldIdNo: '610322221484844854545454',
    productName: '一本通',
    lossDeadLine: '五天临时',
    bankName: '陕西中国银行支行',
    operator: '小仙女',
    lossSuccessTime: '2019-05-31',
    openBank: '安徽中国银行',
    tellNumber: '44444546665656',
    createTime: '2019-05-25',
    agentName: '小仙女',
    agentIDNumber: '622000020214252',
    reviser: '我是小仙女',
    remark: '我是小仙女'
  }, {
    mainCallNumber: '15922223333',
    customerName: '我是小仙女',
    isLossSuccess: '是',
    number: '111111111111111111',
    chequeNumber: '22wewe',
    accountType: '活期一本通',
    houseHoldIdNo: '610322221484844854545454',
    productName: '一本通',
    lossDeadLine: '五天临时',
    bankName: '陕西中国银行支行',
    operator: '小仙女',
    lossSuccessTime: '2019-05-31',
    openBank: '安徽中国银行',
    tellNumber: '44444546665656',
    createTime: '2019-05-25',
    agentName: '小仙女',
    agentIDNumber: '622000020214252',
    reviser: '我是小仙女',
    remark: '我是小仙女'
  }
  ],
  cardServiceRecordData: [
    {
      transactionType: '关闭网上支付',
      mainCallNumber: '15566669999',
      customerName: '不才',
      houseHoldIdNo: '65578980098333212',
      cardNumber: '6222222222222222',
      productName: 'E卡通',
      bankName: '合肥南宁路中国银行支行',
      operator: '不才',
      reviser: '不才',
      isUpdateSuccess: '是',
      transactionTime: '2019-05-09',
      tellNumber: '15566667777',
      beginTime: '我是小仙女',
      endTime: '2019-05-19',
      createTime: '2019-05-11'
    }, {
      transactionType: '关闭网上支付',
      mainCallNumber: '15566669999',
      customerName: '不才',
      houseHoldIdNo: '65578980098333212',
      cardNumber: '6222222222222222',
      productName: 'E卡通',
      bankName: '合肥南宁路中国银行支行',
      operator: '不才',
      reviser: '不才',
      isUpdateSuccess: '是',
      transactionTime: '2019-05-09',
      tellNumber: '15566667777',
      beginTime: '我是小仙女',
      endTime: '2019-05-19',
      createTime: '2019-05-11'
    }, {
      transactionType: '关闭网上支付',
      mainCallNumber: '15566669999',
      customerName: '不才',
      houseHoldIdNo: '65578980098333212',
      cardNumber: '6222222222222222',
      productName: 'E卡通',
      bankName: '合肥南宁路中国银行支行',
      operator: '不才',
      reviser: '不才',
      isUpdateSuccess: '是',
      transactionTime: '2019-05-09',
      tellNumber: '15566667777',
      beginTime: '我是小仙女',
      endTime: '2019-05-19',
      createTime: '2019-05-11'
    }, {
      transactionType: '关闭网上支付',
      mainCallNumber: '15566669999',
      customerName: '不才',
      houseHoldIdNo: '65578980098333212',
      cardNumber: '6222222222222222',
      productName: 'E卡通',
      bankName: '合肥南宁路中国银行支行',
      operator: '不才',
      reviser: '不才',
      isUpdateSuccess: '是',
      transactionTime: '2019-05-09',
      tellNumber: '15566667777',
      beginTime: '我是小仙女',
      endTime: '2019-05-19',
      createTime: '2019-05-11'
    }, {
      transactionType: '关闭网上支付',
      mainCallNumber: '15566669999',
      customerName: '不才',
      houseHoldIdNo: '65578980098333212',
      cardNumber: '6222222222222222',
      productName: 'E卡通',
      bankName: '合肥南宁路中国银行支行',
      operator: '不才',
      reviser: '不才',
      isUpdateSuccess: '是',
      transactionTime: '2019-05-09',
      tellNumber: '15566667777',
      beginTime: '我是小仙女',
      endTime: '2019-05-19',
      createTime: '2019-05-11'
    }, {
      transactionType: '关闭网上支付',
      mainCallNumber: '15566669999',
      customerName: '不才',
      houseHoldIdNo: '65578980098333212',
      cardNumber: '6222222222222222',
      productName: 'E卡通',
      bankName: '合肥南宁路中国银行支行',
      operator: '不才',
      reviser: '不才',
      isUpdateSuccess: '是',
      transactionTime: '2019-05-09',
      tellNumber: '15566667777',
      beginTime: '我是小仙女',
      endTime: '2019-05-19',
      createTime: '2019-05-11'
    }, {
      transactionType: '关闭网上支付',
      mainCallNumber: '15566669999',
      customerName: '不才',
      houseHoldIdNo: '65578980098333212',
      cardNumber: '6222222222222222',
      productName: 'E卡通',
      bankName: '合肥南宁路中国银行支行',
      operator: '不才',
      reviser: '不才',
      isUpdateSuccess: '是',
      transactionTime: '2019-05-09',
      tellNumber: '15566667777',
      beginTime: '我是小仙女',
      endTime: '2019-05-19',
      createTime: '2019-05-11'
    }, {
      transactionType: '关闭网上支付',
      mainCallNumber: '15566669999',
      customerName: '不才',
      houseHoldIdNo: '65578980098333212',
      cardNumber: '6222222222222222',
      productName: 'E卡通',
      bankName: '合肥南宁路中国银行支行',
      operator: '不才',
      reviser: '不才',
      isUpdateSuccess: '是',
      transactionTime: '2019-05-09',
      tellNumber: '15566667777',
      beginTime: '我是小仙女',
      endTime: '2019-05-19',
      createTime: '2019-05-11'
    }, {
      transactionType: '关闭网上支付',
      mainCallNumber: '15566669999',
      customerName: '不才',
      houseHoldIdNo: '65578980098333212',
      cardNumber: '6222222222222222',
      productName: 'E卡通',
      bankName: '合肥南宁路中国银行支行',
      operator: '不才',
      reviser: '不才',
      isUpdateSuccess: '是',
      transactionTime: '2019-05-09',
      tellNumber: '15566667777',
      beginTime: '我是小仙女',
      endTime: '2019-05-19',
      createTime: '2019-05-11'
    }
  ],
  data: {
    ScoreVos: [
      {
        id: 1,
        examName: '三月月考',
        difficultyDegree: '一般',
        examType: '培训后考试',
        fullScore: 100,
        passingScore: 60,
        credit: 1,
        score: 61,
        ranking: '1/12'
      },
      {
        id: 2,
        examName: '三月月考',
        difficultyDegree: '困难',
        examType: '日测',
        fullScore: 100,
        passingScore: 60,
        credit: 2,
        score: 62,
        ranking: '2/12'
      },
      {
        id: 3,
        examName: '三月月考',
        difficultyDegree: '简单',
        examType: '培训后考试',
        fullScore: 100,
        passingScore: 60,
        credit: 3,
        score: 63,
        ranking: '3/12'
      },
      {
        id: 4,
        examName: '三月月考',
        difficultyDegree: '困难',
        examType: '月考',
        fullScore: 100,
        passingScore: 60,
        credit: 4,
        score: 64,
        ranking: '4/12'
      },
      {
        id: 5,
        examName: '三月月考',
        difficultyDegree: '困难',
        examType: '培训后考试',
        fullScore: 100,
        passingScore: 60,
        credit: 5,
        score: 65,
        ranking: '5/12'
      },
      {
        id: 6,
        examName: '三月月考',
        difficultyDegree: '简单',
        examType: '培训后考试',
        fullScore: 100,
        passingScore: 60,
        credit: 6,
        score: 66,
        ranking: '1/12'
      },
      {
        id: 7,
        examName: '三月月考',
        difficultyDegree: '困难',
        examType: '月考',
        fullScore: 100,
        passingScore: 60,
        credit: 7,
        score: 67,
        ranking: '7/12'
      },
      {
        id: 8,
        examName: '三月月考',
        difficultyDegree: '困难',
        examType: '培训后考试',
        fullScore: 100,
        passingScore: 60,
        credit: 8,
        score: 68,
        ranking: '8/12'
      },
      {
        id: 9,
        examName: '三月月考',
        difficultyDegree: '困难',
        examType: '月考',
        fullScore: 100,
        passingScore: 60,
        credit: 9,
        score: 69,
        ranking: '9/12'
      },
      {
        id: 10,
        examName: '三月月考',
        difficultyDegree: '困难',
        examType: '日测',
        fullScore: 100,
        passingScore: 60,
        credit: 10,
        score: 70,
        ranking: '10/12'
      },
      {
        id: 11,
        examName: '三月月考',
        difficultyDegree: '困难',
        examType: '培训后考试',
        fullScore: 100,
        passingScore: 60,
        credit: 11,
        score: 71,
        ranking: '11/12'
      },
      {
        id: 12,
        examName: '三月月考',
        difficultyDegree: '简单',
        examType: '紧急考试',
        fullScore: 100,
        passingScore: 60,
        credit: 12,
        score: 72,
        ranking: '12/12'
      }
    ],
    page: 1,
    totalCount: 12
  },
  listData: {
    ScoreVos: [
      {
        id: 1,
        cardNumber: 123123123,
        enterFlag: '已激活',
        cancelFlag: '已取消',
        lossFlag: '已挂失',
        noFlag: '已停用',
        cardAccFlag: '已联动'
      },
      {
        id: 2,
        cardNumber: 123123123,
        enterFlag: '已激活',
        cancelFlag: '已取消',
        lossFlag: '已挂失',
        noFlag: '已停用',
        cardAccFlag: '已联动'
      },
      {
        id: 3,
        cardNumber: 123123123,
        enterFlag: '已激活',
        cancelFlag: '已取消',
        lossFlag: '已挂失',
        noFlag: '已停用',
        cardAccFlag: '已联动'
      },
      {
        id: 4,
        cardNumber: 123123123,
        enterFlag: '已激活',
        cancelFlag: '已取消',
        lossFlag: '已挂失',
        noFlag: '已停用',
        cardAccFlag: '已联动'
      },
      {
        id: 5,
        cardNumber: 123123123,
        enterFlag: '已激活',
        cancelFlag: '已取消',
        lossFlag: '已挂失',
        noFlag: '已停用',
        cardAccFlag: '已联动'
      },
      {
        id: 6,
        cardNumber: 123123123,
        enterFlag: '已激活',
        cancelFlag: '已取消',
        lossFlag: '已挂失',
        noFlag: '已停用',
        cardAccFlag: '已联动'
      },
      {
        id: 7,
        cardNumber: 123123123,
        enterFlag: '已激活',
        cancelFlag: '已取消',
        lossFlag: '已挂失',
        noFlag: '已停用',
        cardAccFlag: '已联动'
      },
      {
        id: 8,
        cardNumber: 123123123,
        enterFlag: '已激活',
        cancelFlag: '已取消',
        lossFlag: '已挂失',
        noFlag: '已停用',
        cardAccFlag: '已联动'
      },
      {
        id: 9,
        cardNumber: 123123123,
        enterFlag: '已激活',
        cancelFlag: '已取消',
        lossFlag: '已挂失',
        noFlag: '已停用',
        cardAccFlag: '已联动'
      },
      {
        id: 10,
        cardNumber: 123123123,
        enterFlag: '已激活',
        cancelFlag: '已取消',
        lossFlag: '已挂失',
        noFlag: '已停用',
        cardAccFlag: '已联动'
      },
      {
        id: 11,
        cardNumber: 123123123,
        enterFlag: '已激活',
        cancelFlag: '已取消',
        lossFlag: '已挂失',
        noFlag: '已停用',
        cardAccFlag: '已联动'
      },
      {
        id: 12,
        cardNumber: 123123123,
        enterFlag: '已激活',
        cancelFlag: '已取消',
        lossFlag: '已挂失',
        noFlag: '已停用',
        cardAccFlag: '已联动'
      }
    ],
    page: 1,
    totalCount: 12
  }
}

export default {
  lossInfo: response => {
    const { token } = param2Obj(response.url)
    if (userMap[token]) {
      return userMap[token]
    }
  },
  logout: () => 'success'
}
